<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <title>Thymeleaf iframe 示例</title>
</head>
<body>
<h1>Thymeleaf iframe 示例</h1>

<div th:if="${includeIframe}">
  <iframe th:src="${iframeUrl}" width="100%" height="400"></iframe>
</div>
</body>
</html>